<!--
 ~ The MIT License
 ~
 ~ Copyright (c) 2013, CloudBees, Inc.
 ~
 ~ Permission is hereby granted, free of charge, to any person obtaining a copy
 ~ of this software and associated documentation files (the "Software"), to deal
 ~ in the Software without restriction, including without limitation the rights
 ~ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 ~ copies of the Software, and to permit persons to whom the Software is
 ~ furnished to do so, subject to the following conditions:
 ~
 ~ The above copyright notice and this permission notice shall be included in
 ~ all copies or substantial portions of the Software.
 ~
 ~ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 ~ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 ~ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 ~ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 ~ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 ~ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 ~ THE SOFTWARE.
 -->
<div>
    The name of the branch that this exception applies to. <strong>Name matching is case insensitive.</strong>
    This name can be a comma separated list of names.
    The name can include Ant style wildcards. Prefixing a name with <code>!</code> will invert the match. (If you
    have an actual branch name that starts with <code>!</code> or <code>\!</code> you will need to escape it
    with a leading <code>\</code>. The escape only applies to the first character of the name.)
    Some examples:
    <ul>
        <li><code>production</code> matches one and only one branch</li>
        <li><code>sandbox/*</code> will match <code>sandbox/acme</code> but not <code>sandbox/coyote/wiley</code></li>
        <li><code>sandbox/**</code> will match <code>sandbox/acme</code> and <code>sandbox/coyote/wiley</code></li>
        <li><code>production,staging</code> matches two specific branches</li>
        <li><code>production,staging*</code> matches the production branch and any branch starting with <code>staging</code></li>
        <li><code>!staging/**,staging/test/**</code> matches any branch that is not the a staging branch, but will
            match the staging/test branches</li>
        <li><code>\!starts-with-invert</code> matches the branch with the name <code>!starts-with-invert</code></li>
        <li><code>\\!starts-with-escape</code> matches the branch with the name <code>\!starts-with-escape</code></li>
        <li><code>\escape-only-for-invert</code> matches the branch with the name <code>\escape-only-for-invert</code></li>
        <li><code>no-internal-!-escape</code> matches the branch with the name <code>no-internal-!-escape</code></li>
        <li><code>no-internal-\-escape</code> matches the branch with the name <code>no-internal-\-escape</code></li>
    </ul>
</div>